#!/bin/bash
#打包启动脚本
cp ./tools/* /userdata/

cp ./config/rc.local /etc/
cp ./config/99-usb-serial.rules /etc/udev/rules.d/
cp ./config/eth1 /etc/network/interfaces.d/
cp ./config/app_setup.service /etc/systemd/system

#打包可执行文件
cp -pr  /mnt/code/uav_ws/install/share/* /opt/ros/noetic/share/
cp -pr  /mnt/code/uav_ws/install/lib/* /opt/ros/noetic/lib/

sudo systemctl daemon-reload
sudo systemctl enable app_setup.service
sudo systemctl start app_setup.service   